package com.spring.dao.Impl;


import com.spring.dao.BookDao;

import java.util.*;

/**
 * @author:CoolTiger
 * @description: TODO
 * @date:2024/04/23/22:38:21
 **/
public class BookDaoImpl implements BookDao {
    private int[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String,String> map;
    private Properties properties;
    // set
    public void setArray(int[] array) {
        this.array = array;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void save() {
        System.out.println("BookDao save ... ");
        System.out.println("遍历数组："+ Arrays.toString(array));
        System.out.println("遍历集合："+ list);
        System.out.println("遍历set："+ set);
        System.out.println("遍历map："+ map);
        System.out.println("遍历properties："+ properties);
    }

}
